package org.example;

import java.util.Arrays;
import java.util.List;

public class Course {
    private List<String> courName;
    private double[] credit;

    public Course() {
    }

    public Course(List<String> courName, double[] credit) {
        this.courName = courName;
        this.credit = credit;
    }

    @Override
    public String toString() {
        return "Course{" +
                "courName=" + courName +
                ", credit=" + Arrays.toString(credit) +
                '}';
    }

    public List<String> getCourName() {
        return courName;
    }

    public void setCourName(List<String> courName) {
        this.courName = courName;
    }

    public double[] getCredit() {
        return credit;
    }

    public void setCredit(double[] credit) {
        this.credit = credit;
    }
}
